Module coap_numbers::code
source · Expand description
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§
- Classification of CoAP codes used in responses
- Classification of CoAP codes in any message
Constants§
- Abort
- Bad Gateway
- Bad Option
- Bad Request
- Changed
- Conflict
- Content
- Continue
- Created
- CSM
- DELETE
- Deleted
- Empty
- FETCH
- Forbidden
- Gateway Timeout
- GET
- Hop Limit Reached
- Internal Server Error
- iPATCH
- Method Not Allowed
- Not Acceptable
- Not Found
- Not Implemented
- PATCH
- Ping
- Pong
- POST
- Precondition Failed
- Proxying Not Supported
- PUT
- Release
- Request Entity Incomplete
- Request Entity Too Large
- Service Unavailable
- Too Many Requests
- Unauthorized
- Unprocessable Entity
- Unsupported Content-Format
- Valid
Functions§
- Find which range a code is in
- Format a CoAP code in dotted notation
- to_dotted
alloc
Convert a CoAP code to dotted notation - Find the name for a CoAP code, if any is known