HomeSoftware Heritage

api/apiresponse: Fix HTTP status code for internal server errors

Authored by anlambert on Nov 5 2019, 2:54 PM.

Description

api/apiresponse: Fix HTTP status code for internal server errors

Ensure that an HTTP status code equal to 500 is returned when an internal
server error occurs.

Also add a test to check returned status codes and update some.