class Doorkeeper::OAuth::InvalidRequestResponse

def self.from_request(request, attributes = {})

def self.from_request(request, attributes = {})
  new(
    attributes.merge(
      state: request.try(:state),
      redirect_uri: request.try(:redirect_uri),
      missing_param: request.try(:missing_param),
      reason: request.try(:invalid_request_reason),
    ),
  )
end