| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 55 lines (2 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
ResponseUtil:: (1 method):
throwIfNotSuccessful()
Class: ResponseUtil - X-Ref
Class with static utility methods to process HTTP responses.| throwIfNotSuccessful(Response $response) X-Ref |
| Throws an appropriate exception if the given response is not successful. This method checks the HTTP status code of the response and throws the appropriate exception type based on the status code range: - 3xx: RedirectException (redirect responses) - 4xx: ClientException (client errors) - 5xx: ServerException (server errors) - Other unsuccessful responses: RuntimeException (invalid status codes) param: Response $response The HTTP response to check. |
| Generated : Sat Jun 13 09:38:55 2026 | Cross-referenced by PHPXref |