class Doorkeeper::OAuth::TokenIntrospection
def error_response
def error_response return if @error.blank? if @error == :invalid_token OAuth::InvalidTokenResponse.from_access_token(authorized_token) elsif @error == :invalid_request OAuth::InvalidRequestResponse.from_request(self) else OAuth::ErrorResponse.new(name: @error) end end