Page MenuHomeSoftware Heritage

Fix HTTP status code for internal server errors
ClosedPublic

Authored by anlambert on Tue, Nov 5, 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.Tue, Nov 5, 2:59 PM
vlorentz accepted this revision.Tue, Nov 5, 3:03 PM

perfect

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