Unify exceptions handling and error reporting with LfsApiServlet

Introduce abstract LfsLocksAction (refactor LfsLocksServlet) so that
exception handling is based on LfsException handling (enables re-use of
existing LfsException derived classes in the following changes) which is
in line with LfsApiServlet.
Send errors back in the way that it is understood by Git LFS client
(again in line with LfsApiServlet).

Change-Id: Id32cada65d441b148a6611a3477b4b2dd56cc5b9
Signed-off-by: Jacek Centkowski <jcentkowski@collab.net>
7 files changed
tree: c017c8630d27693758a8bb0ee3dea3520a0ab876
  1. src/
  2. tools/
  3. .gitignore
  4. bazlets.bzl
  5. BUILD
  6. external_plugin_deps.bzl
  7. WORKSPACE