Module: RoomoramaApi::Api::Errors

Included in:
Client
Defined in:
lib/roomorama_api/api/errors.rb

Defined Under Namespace

Classes: BadRequest, Conflict, General, InternalError, NotFound, Unauthorized, Unavailable, UnprocessableEntity

Constant Summary collapse

HTTP_STATUS_ERRORS =

HTTP code => error class mapping

{
	400 => BadRequest,
	401 => Unauthorized,
	403 => General,
	404 => NotFound,
	409 => Conflict,
	422 => UnprocessableEntity,
	500 => InternalError,
	502 => Unavailable,
	503 => Unavailable
}