1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
.. ref-constants
=========
Constants
=========
restless.constants
------------------
A set of constants included with ``restless``. Mostly nice status code mappings
for use in exceptions or the ``Resource.status_map``.
**OK** = ``200``
**CREATED** = ``201``
**ACCEPTED** = ``202``
**NO_CONTENT** = ``204``
**UNAUTHORIZED** = ``401``
**NOT_FOUND** = ``404``
**METHOD_NOT_ALLOWED** = ``405``
**APPLICATION_ERROR** = ``500``
**METHOD_NOT_IMPLEMENTED** = ``501``
|