PostcodeException
Gatepost\Postcode\Client\PostcodeException
The error of a client call: bad input, a refusal or failure of the gateway, or no response. errorCode() gives the reason as a stable code. No message holds the API key.
Methods
Section titled “Methods”errorCode()
Section titled “errorCode()”public function errorCode(): Client\ErrorCodeThe reason for the failure, as a stable code.
status()
Section titled “status()”public function status(): ?intThe HTTP status of the response, or null when no response arrived.
apiCode()
Section titled “apiCode()”public function apiCode(): ?stringThe error.code of the response body, such as level_not_granted, or null.
retryAfterMs()
Section titled “retryAfterMs()”public function retryAfterMs(): ?intThe wait in milliseconds that a valid Retry-After header of a 429, 502, 503 or 504 asked for, or null. Tell the user when to try again.
Unofficial. Not made or endorsed by NIPOST.