]> source.dussan.org Git - jgit.git/commit
FileLfsServlet: Return HTTP 422 instead of 400 60/77760/4
authorDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 22 Jul 2016 08:21:20 +0000 (17:21 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 27 Jul 2016 02:01:14 +0000 (11:01 +0900)
commit2e652aebab329e805beb8198dea6a064bd64ec1f
tree2df82baf339429c61214cad12314574cc6fdce8d
parentc15903ea3e69bee4a2fc99452e6cc4a9a7151da5
FileLfsServlet: Return HTTP 422 instead of 400

According to the specification [1], the error response status code
should be 422 when there is a validation error with one or more of
the objects in the request

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

Change-Id: Id03fe00a2109b896d9a154228a14a33bce5accc3
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.lfs.server.test/tst/org/eclipse/jgit/lfs/server/fs/DownloadTest.java
org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/FileLfsServlet.java