Skip to content
Commit 8252ec75 authored by Pieter De Gendt's avatar Pieter De Gendt Committed by Carles Cufí
Browse files

net: lib: coap: Translate handler errors to CoAP response codes



The CoAP request handler returns errno codes in the following cases:
* ENOENT if no handler found; respond with 4.04
* ENOTSUP if an unknown request code received; respond with 4.00
* EPERM no handler found for the method; respond with 4.05

Signed-off-by: default avatarPieter De Gendt <pieter.degendt@basalte.be>
parent 40c2e08e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment