To support the HTTP API smoketest, return complete and consistent HTTP error codes. Namely, 50.* errors should no longer redirect to provide an error message; the middleware that translates form-data requests to JSON should return 401, instead of 422, on missing key.
Description
Description
Details
Details
- Difficulty level
- Unknown (require assessment)
- Version
- vyos-1.4
- Why the issue appeared?
- Will be filled on close
- Is it a breaking change?
- Perfectly compatible
- Issue type
- Improvement (missing useful functionality)
Event Timeline
Comment Actions
Changes and fixes to smoketest at link; in testing before PR:
https://github.com/vyos/vyos-1x/compare/current...jestabro:api-smoketest