-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from Enrico204/reply-with-insufficient-storag…
…e-on-disk-full Reply "insufficient storage" on disk full or over-quota
- Loading branch information
Showing
4 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Bugfix: Reply "insufficient storage" on disk full or over-quota | ||
|
||
When there was no space left on disk, or any other write-related error, | ||
rest-server was replying with HTTP status code 400 (Bad request). This is | ||
misleading (restic client will dump the status code to the user). | ||
|
||
This has been fixed changing the behaviour so two different statuses are used: | ||
* HTTP 507 "Insufficient storage" is the status on disk full or repository | ||
over-quota | ||
* HTTP 500 "Internal server error" on other disk-related errors | ||
|
||
https://github.com/restic/rest-server/issues/155 | ||
https://github.com/restic/rest-server/pull/160 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters