Метод |
Описание |
|
forbidden ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException |
Is thrown when access to this resource is forbidden |
|
gone ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException |
Is thrown when this resource is not no longer available (e.g. with new API version) |
|
methodNotSupported ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException |
Is thrown when request method (e.g. POST or PUT) is not allowed for this resource |
|
notFound ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException |
Is thrown when resource's not found |
|
tooManyRequests ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException |
Is thrown to reject request due to rate limiting |
|
unauthorized ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException |
Is thrown when trying to reach secured resource without authentication |
|
unprocessableEntity ( array $errors, string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException |
Is thrown when validation problem appears |
|
unsupportedMediaType ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException |
Is thrown when incorrect (or unknown) Content-Type was provided in request |
|