GSA / 889-tool

Web service for determining 889 compliance of vendors
1 stars 0 forks source link

return http exceptions from API rather than HTTP 200 with error #13

Closed mark-meyer closed 1 year ago

mark-meyer commented 1 year ago

The original API returned errors by returning an HTTP 200 with JSON setting success to false. This is hard to deal with on the front end. This changes api errors (primarily SAM errors) to generic 400 errors. Consider adding granularity to errors if we need it later.