Method |
Description |
|
getStatusCode ( ) : integer |
|
|
respond ( array $data, array $headers = [] ) : Illuminate\Http\JsonResponse |
Set a response. |
|
respondWithBadRequest ( string $message = 'Bad Request' ) : Illuminate\Http\Response |
Send a response with a bad request. |
|
respondWithError ( string $message ) : Illuminate\Http\JsonResponse |
Respond with an error message. |
|
respondWithInternalServerError ( string $message = 'Internal Server Error' ) : Illuminate\Http\Response |
Send a response with a internal server error code. |
|
setStatusCode ( integer $statusCode ) |
|
|