[−][src]Module coap_numbers::code
Constants and functions for CoAP codes
This contains codes for all ranges -- request, response and signalling.
Codes are expressed as u8 values in accordance with their serialized form.
Enums
Class | Classification of CoAP codes used in responses |
Range | Classification of CoAP codes in any message |
Constants
ABORT | Abort |
BAD_GATEWAY | Bad Gateway |
BAD_OPTION | Bad Option |
BAD_REQUEST | Bad Request |
CHANGED | Changed |
CONFLICT | Conflict |
CONTENT | Content |
CONTINUE | Continue |
CREATED | Created |
CSM | CSM |
DELETE | DELETE |
DELETED | Deleted |
EMPTY | Empty |
FETCH | FETCH |
FORBIDDEN | Forbidden |
GATEWAY_TIMEOUT | Gateway Timeout |
GET | GET |
HOP_LIMIT_REACHED | Hop Limit Reached |
INTERNAL_SERVER_ERROR | Internal Server Error |
IPATCH | iPATCH |
METHOD_NOT_ALLOWED | Method Not Allowed |
NOT_ACCEPTABLE | Not Acceptable |
NOT_FOUND | Not Found |
NOT_IMPLEMENTED | Not Implemented |
PATCH | PATCH |
PING | Ping |
PONG | Pong |
POST | POST |
PRECONDITION_FAILED | Precondition Failed |
PROXYING_NOT_SUPPORTED | Proxying Not Supported |
PUT | PUT |
RELEASE | Release |
REQUEST_ENTITY_INCOMPLETE | Request Entity Incomplete |
REQUEST_ENTITY_TOO_LARGE | Request Entity Too Large |
SERVICE_UNAVAILABLE | Service Unavailable |
TOO_MANY_REQUESTS | Too Many Requests |
UNAUTHORIZED | Unauthorized |
UNPROCESSABLE_ENTITY | Unprocessable Entity |
UNSUPPORTED_CONTENT_FORMAT | Unsupported Content-Format |
VALID | Valid |
Functions
classify | Find which range a code is in |
format_dotted | Format a CoAP code in dotted notation |
to_dotted | Convert a CoAP code to dotted notation |
to_name | Find the name for a CoAP code, if any is known |