freelawproject / doctor

A microservice for document conversion at scale
https://free.law/projects/doctor
BSD 2-Clause "Simplified" License
57 stars 15 forks source link

Updated 400 status code on failed validation tests #148

Closed albertisfu closed 2 years ago

albertisfu commented 2 years ago

Fixed failed validation tests after updating 406 status codes to 400.

mlissner commented 2 years ago

We should be using HttpStatus codes for this kind of thing (they're easier to refactor), but maybe slip that in next time: https://docs.python.org/3/library/http.html#http-status-codes