class Doorkeeper::OAuth::ErrorResponse

def status

def status
  if name == :invalid_client || name == :unauthorized_client
    :unauthorized
  else
    :bad_request
  end
end