class Mastodon::Error

General error class for Mastodon.

Constants

BadGateway
BadRequest
ClientError
ERRORS
Forbidden
GatewayTimeout
InternalServerError
NotFound
ServerError
ServiceUnavailable
TooManyRequests
Unauthorized
UnprocessableEntity

Public Class Methods

from_response(body) click to toggle source
# File lib/mastodon/error.rb, line 34
def from_response(body)
  new(body['error'])
end