original_string: private function createHttpExceptionResponse(HttpException $exception)
      {
          return new JsonResponse(
              [
                  'status'  => 'ERROR',
                  'message' => $exception->getMessage()
              ],
              $exception->getStatusCode(),
              $exception->getHeaders()
          );
      }
code: private function createHttpExceptionResponse(HttpException $exception)
      {
          return new JsonResponse(
              [
                  'status'  => 'ERROR',
                  'message' => $exception->getMessage()
              ],
              $exception->getStatusCode(),
              $exception->getHeaders()
          );
      }
code_tokens: private function createHttpExceptionResponse ( HttpException $ exception ) { return new JsonResponse ( [ 'status' => 'ERROR' , 'message' => $ exception -> getMessage ( ) ] , $ exception -> getStatusCode ( ) , $ exception -> getHeaders ( ) ) ; }
docstring: Create a http response.
  
  @param HttpException $exception The exception to create a response for.
  
  @return JsonResponse
docstring_tokens: Create a http response .