[io/http/server/Error response generator]
Generates a default error response based on the error received from an io/http/server/Endpoint listener
.
Keywords: default, standard, failure, error, response, automatic
Input ports
error: {"error": "incorrect bearer token"}
Output ports
response:
(
{"status": 400, "headers": {string: string}, "body": "Bad request"}
or {"status": 403, "headers": {string: string}, "body": "Unauthorized"}
)