Page MenuHomeSoftware Heritage

Fix HTTP status code for internal server errors
ClosedPublic

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

Details

Summary

Ensure that an HTTP status code equal to 500 is returned in case of internal
server error when querying the swh Web API.

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

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

anlambert created this revision.Nov 5 2019, 2:59 PM
vlorentz accepted this revision.Nov 5 2019, 3:03 PM

perfect

This revision is now accepted and ready to land.Nov 5 2019, 3:03 PM
This revision was landed with ongoing or failed builds.Nov 5 2019, 3:05 PM
This revision was automatically updated to reflect the committed changes.