protected function respondWithError(
        $message = 'Bad Request',
        $code = SymfonyResponse::HTTP_BAD_REQUEST,
        array $headers = []
    ) {
        return abort($code, $message, $headers);
    }
protected function respondWithError(
        $message = 'Bad Request',
        $code = SymfonyResponse::HTTP_BAD_REQUEST,
        array $headers = []
    ) {
        return abort($code, $message, $headers);
    }
protected function respondWithError ( $ message = 'Bad Request' , $ code = SymfonyResponse :: HTTP_BAD_REQUEST , array $ headers = [ ] ) { return abort ( $ code , $ message , $ headers ) ; }
Return server error response in json format

@param string $message Custom error message
@param int    $code    Error code
@param array  $headers HTTP headers

@return mixed
Return server error response in json format