interface ReportsWriteRejection (View source)

A record write backend that sits behind a separate service which can refuse a write and say why (the PowerDNS API). Backends without one do not implement it.

Methods

string|null
lastWriteRejection()

The reason the service gave for refusing the last record write, or null when the write succeeded or failed without a verdict from the service.

int|null
lastWriteRejectionStatus()

The HTTP status of the service answer behind lastWriteRejection(), or null without one.

Details

string|null lastWriteRejection()

The reason the service gave for refusing the last record write, or null when the write succeeded or failed without a verdict from the service.

Return Value

string|null

int|null lastWriteRejectionStatus()

The HTTP status of the service answer behind lastWriteRejection(), or null without one.

400 and 422 are validation verdicts; other 4xx answers are not.

Return Value

int|null