class Mastodon::Error
Constants
- BadGateway
- BadRequest
- ClientError
- ERRORS
- Forbidden
- GatewayTimeout
- InternalServerError
- ServerError
- TooManyRequests
- UnprocessableEntity
Public Class Methods
from_response(body)
click to toggle source
# File lib/mastodon/error.rb, line 29 def from_response(body) new(body['error']) end