class Pragma::Operation::Response::BadRequest
Represents the 400 Bad Request HTTP response.
Public Class Methods
new( entity: Error.new(error_type: :bad_request, error_message: 'This request is malformed.'), headers: {} )
click to toggle source
Calls superclass method
Pragma::Operation::Response::new
# File lib/pragma/operation/response/bad_request.rb, line 8 def initialize( entity: Error.new(error_type: :bad_request, error_message: 'This request is malformed.'), headers: {} ) super(status: 400, entity: entity, headers: headers) end