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§
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 alloc - Convert a CoAP code to dotted notation
- to_name
- Find the name for a CoAP code, if any is known