jgit/org.eclipse.jgit.lfs
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 Ignore 'The value of exception parameter is not used' warning 2016-07-26 10:16:49 +09:00
META-INF Prepare 4.5.0-SNAPSHOT builds 2016-06-01 23:04:07 +02:00
resources/org/eclipse/jgit/lfs/internal LfsRepository{NotFound,ReadOnly}: Externalize message strings 2016-08-20 11:24:45 +09:00
src/org/eclipse/jgit/lfs LfsProtocolServlet: Add support for rate limit and bandwidth limit errors 2016-08-20 11:26:06 +09:00
.classpath Implement SHA-256 abstraction 2016-02-04 17:49:42 +01:00
.fbprefs Implement SHA-256 abstraction 2016-02-04 17:49:42 +01:00
.gitignore Implement SHA-256 abstraction 2016-02-04 17:49:42 +01:00
.project Implement SHA-256 abstraction 2016-02-04 17:49:42 +01:00
BUCK Implement SHA-256 abstraction 2016-02-04 17:49:42 +01:00
about.html Implement SHA-256 abstraction 2016-02-04 17:49:42 +01:00
build.properties Implement SHA-256 abstraction 2016-02-04 17:49:42 +01:00
plugin.properties Implement SHA-256 abstraction 2016-02-04 17:49:42 +01:00
pom.xml Prepare 4.5.0-SNAPSHOT builds 2016-06-01 23:04:07 +02:00