From 883cacf9cb2916e72f8250e0778ae4996bbd0b67 Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Fri, 10 May 2019 14:38:32 +0000 Subject: [PATCH] docs/api: document a new batch error code In some cases, it may be useful to return an error code if the number of objects in the batch response is too larger for the server to handle. Document the 413 error code for this case, since it is in use by at least one implementation for this purpose. --- docs/api/batch.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api/batch.md b/docs/api/batch.md index 546d5624..00fcb582 100644 --- a/docs/api/batch.md +++ b/docs/api/batch.md @@ -262,6 +262,8 @@ The following status codes can optionally be returned from the API, depending on the server implementation. * 406 - The Accept header needs to be `application/vnd.git-lfs+json`. +* 413 - The batch API request contained too many objects or the request was +otherwise too large. * 429 - The user has hit a rate limit with the server. Though the API does not specify any rate limits, implementors are encouraged to set some for availability reasons.