ErrorCode
Wraps error code definitions.
Example
ruby
api.error_codes[:not_found].status # => 404
api.error_codes[:not_found].description # => "Resource not found"Instance Methods
#description
#description
The description for this error code.
Returns
String, nil
#status
#status
The status for this error code.
Returns
Integer
#to_h
#to_h
Converts this error code to a hash.
Returns
Hash