Skip to content
This repository has been archived by the owner on Mar 7, 2020. It is now read-only.

Make errors more specific where possible #16

Open
andybee opened this issue Apr 23, 2018 · 0 comments
Open

Make errors more specific where possible #16

andybee opened this issue Apr 23, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@andybee
Copy link
Contributor

andybee commented Apr 23, 2018

Because of the way the middleware layering is currently implemented, sending a malformed JSON body to a specific result throws an exception at the bodyParser middleware and gets caught and returned as an error with the generic key. Ideally, we'd only attempt parsing on the methods that allow JSON bodies and return a specific key.

@andybee andybee added the enhancement New feature or request label Apr 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant