Closed tmackenzie closed 5 years ago
Dispatch Errors that occur in engine
Given a request with the header Content-Type: application/json When the url is matched and it expects Content-Type: application/json; charset=utf-8 Then add the header X-Reasons which is a unsecure jwt with the payload
Content-Type: application/json
Content-Type: application/json; charset=utf-8
X-Reasons
[ { "k": "Content-Type", "v": "application/json", "src": "hdr", "exp": ["application/json; charset=utf-8"], "msg": "" }, ]
And set the status code to 415 And dispatch the request to a configured Unsupported Media Type Route.
415
Unsupported Media Type
Dispatch Errors that occur in engine
Given a request with the header
Content-Type: application/json
When the url is matched and it expectsContent-Type: application/json; charset=utf-8
Then add the headerX-Reasons
which is a unsecure jwt with the payloadAnd set the status code to
415
And dispatch the request to a configuredUnsupported Media Type
Route.