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.
Previously, out-of-storage errors on the Server resulted in a
500
/INTERNAL_ERROR
driven by a413
/REQUEST_ENTITY_TOO_LARGE
HTTP status. This PR changes that to use a507
/INSUFFICIENT_STORAGE
status, which we report directly to the user instead of triggering anINTERNAL_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