Exceptions¶
restless.exceptions¶
-
exception
restless.exceptions.HttpError(msg=None)¶ The foundational HTTP-related error.
All other HTTP errors in
restlessinherit from this one.Has a
statusattribute. If present,restlesswill use this as thestatus_codein the response.Has a
msgattribute. Has a reasonable default message (override-able from the constructor).-
msg= 'Application Error'¶
-
status= 500¶
-
-
exception
restless.exceptions.MethodNotAllowed(msg=None)¶ -
msg= 'The specified HTTP method is not allowed.'¶
-
status= 405¶
-
-
exception
restless.exceptions.MethodNotImplemented(msg=None)¶ -
msg= 'The specified HTTP method is not implemented.'¶
-
status= 501¶
-
-
exception
restless.exceptions.RestlessError¶ A common base exception from which all other exceptions in
restlessinherit from.No special attributes or behaviors.