kitware-resonant / dkc-next

Apache License 2.0
3 stars 0 forks source link

Make quota exceeded failures on file creation a 400 rather than 500 #144

Closed zachmullen closed 3 years ago

zachmullen commented 3 years ago

Currently this comes out as a model-layer ValidationError, which is treated as 500 in the REST layer.

zachmullen commented 3 years ago

One other small bug here is that our error message shows the used size of the quota before the proposed update rather than what it would be after the increment.