Throws OAuthExceptions based on HTTP error response.
This class consolidates OAuth error processing.
See https://datatracker.ietf.org/doc/html/rfc6749
Section 5.2
The authorization server responds with an HTTP 400 (Bad Request)
status code (unless specified otherwise)...
|
void | from4xx (http::HTTPResponse &response) const override |
| OAuth-specific handling for HTTP 4xx-errors.
|
|
virtual void | from4xx (int httpStatusCode) const |
| Throws exception, when HTTP-status code is 4xx.
|
|
virtual void | from400 () const |
| Throws exception, when HTTP-status code is 400.
|
|
virtual void | from401 () const |
| Throws exception, when HTTP-status code is 401.
|
|
virtual void | from403 () const |
| Throws exception, when HTTP-status code is 403.
|
|
virtual void | from404 () const |
| Throws exception, when HTTP-status code is 404.
|
|
virtual void | from4xxOther (int httpStatusCode) const |
| Throws exception, when HTTP-status code some other 4xx-series.
|
|
virtual void | from5xx (tenduke::http::HTTPResponse &response) const |
| Throws exception for 5xx responses.
|
|
virtual void | from5xx (int httpStatusCode) const |
| Throws exception, when status code is any 5xx-series.
|
|