Skip to content

Handling other 400 errors as JSON

Latest
Compare
Choose a tag to compare
@matheusgalvao1 matheusgalvao1 released this 03 Mar 14:31
cc288e2

For some endpoints when receiving requests with a wrong format, Flask was returning a 400 response in HTML. This version handles those cases returning a JSON.