added respondServerError
This commit is contained in:
@@ -83,7 +83,7 @@ class ApiController extends Controller
|
||||
*
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function respondNotImplmeneted(): JsonResponse
|
||||
public function respondNotImplemented(): JsonResponse
|
||||
{
|
||||
return response()->json([], HttpResponseCodes::HTTP_NOT_IMPLEMENTED);
|
||||
}
|
||||
@@ -108,6 +108,16 @@ class ApiController extends Controller
|
||||
return response()->json([], HttpResponseCodes::HTTP_ACCEPTED);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return server error.
|
||||
*
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function respondServerError(): JsonResponse
|
||||
{
|
||||
return response()->json([], HttpResponseCodes::HTTP_INTERNAL_SERVER_ERROR);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return single error message
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user