It is absolutely not convenient to handle errors as part of the normal processing of a request: any I/O operation can literally fail and is likely unrecoverable as this network level.
I suggest that HandlerCallback and NextCallback propagate all kind errors so that they could be processed as a 500 code.
It is absolutely not convenient to handle errors as part of the normal processing of a request: any I/O operation can literally fail and is likely unrecoverable as this network level.
I suggest that
HandlerCallback
andNextCallback
propagate all kind errors so that they could be processed as a500
code.