LI3DS / api-li3ds

LI³DS Rest API
GNU General Public License v3.0
0 stars 3 forks source link

Improve handling of Postgres errors #42

Closed elemoine closed 7 years ago

elemoine commented 7 years ago

With this commit psycopg2 IntegrityError's are converted to 404s, and all other psycopg2 Error's are converted to 400s. This makes it possible for the client to treat integrity errors differently.