jgit/org.eclipse.jgit.lfs.server
David Pursehouse 1096652e71 LfsProtocolServlet: Add support for rate limit and bandwidth limit errors
The git-lfs specification [1] describes the following optional status codes
that may be returned:

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.

509 - Returned if the bandwidth limit for the user or repository has been
      exceeded. The API does not specify any bandwidth limit, but implementors
      may track usage.

Add two new exception classes to represent these cases. Implementations may
throw these from #getLargeFileRepository(), causing the corresponding HTTP
status codes to be returned to the client.

[1] https://github.com/github/git-lfs/blob/master/docs/api/v1/http-v1-batch.md

Change-Id: I7b93f3cf90f7344c90b1587e07927fdeb167097e
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
2016-08-20 11:26:06 +09:00
..
.settings Silence API errors in LfsProtocolServlet 2016-08-09 00:45:30 +02:00
META-INF Prepare 4.5.0-SNAPSHOT builds 2016-06-01 23:04:07 +02:00
resources/org/eclipse/jgit/lfs/server/internal Remove duplicated single quotes in text not handled by MessageFormat 2016-07-01 22:22:44 +02:00
src/org/eclipse/jgit/lfs/server LfsProtocolServlet: Add support for rate limit and bandwidth limit errors 2016-08-20 11:26:06 +09:00
.classpath Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
.fbprefs Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
.gitignore Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
.project Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
BUCK Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
about.html Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
build.properties Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
plugin.properties Support LFS protocol and a file system based LFS storage 2016-02-04 17:49:43 +01:00
pom.xml Prepare 4.5.0-SNAPSHOT builds 2016-06-01 23:04:07 +02:00