distributed-system-analysis / pbench

A benchmarking and performance analysis framework
http://distributed-system-analysis.github.io/pbench/
GNU General Public License v3.0
188 stars 108 forks source link

Report Server out of space errors via `507` instead of `413`/`500` #3575

Closed webbnh closed 1 year ago

webbnh commented 1 year ago

Previously, out-of-storage errors on the Server resulted in a 500/INTERNAL_ERROR driven by a 413/REQUEST_ENTITY_TOO_LARGE HTTP status. This PR changes that to use a 507/INSUFFICIENT_STORAGE status, which we report directly to the user instead of triggering an INTERNAL_ERROR. This is for the initial upload as well as for the backup.

This gives the end-user a clearer picture of the nature of the failure.

PBENCH-1299