Repository navigation
Add HTTP 507 (Insufficient Storage) to the list of optional statuses - #1473
Conversation
Mention that the server implementation may optionally return status code 507. This does not add any specific handling of 507 in either the client or the test server implementation. If a server returns this status code, it will be handled by the client as a generic "Server Error". See git-lfs#1327 and git-lfs#1438. Change-Id: I2de691bb57b3ef44288b91b79226695f768ec44e Signed-off-by: David Pursehouse <[email protected]>
|
Looks good. Would you mind also adding an entry for a |
That was omitted intentionally, such that the error code is mentioned in the document allowing servers to optionally return it, but the client behaviour is unchanged and a generic error will be shown. This is consistent with the behaviour for other optional codes such as If it's OK to add a specific message for |
Change-Id: Ia42731e35f2aa7b918de3d0412205700df968d95 Signed-off-by: David Pursehouse <[email protected]>
|
@dpursehouse I would've accepted a separate PR, but this works too 👍 |
|
Merged this in as a single commit by accident, I think GitHub remembered that from when I merged the 1.4.0 release branch. I'll unset that default so that this doesn't happen again. Thanks anyways! |
|
\o/ thanks. |
Since [1], the git-lfs specification allows the server to return HTTP 507 if there is insufficient storage for the uploaded object(s). Add a new exception class, which implementations may throw from the getRepository() method, causing HTTP 507 to be returned to the client. [1] git-lfs/git-lfs#1473 Change-Id: If5bc0a35fcf870d4216af6ca2f7c8924689ef9c5 Signed-off-by: David Pursehouse <[email protected]>
Mention that the server implementation may optionally return status
code 507.
This does not add any specific handling of 507 in either the client or
the test server implementation. If a server returns this status code,
it will be handled by the client as a generic "Server Error".
See #1327 and #1438.