You can clone with
HTTPS or Subversion.
Is there any reason that HTTP errors such as BadRequest set Content Type header to "text/html" and do not allow to override it, eg I need to return json.
Also, I've chosen PreconditionFailed to return invalid form, but it doesnt' have message keyword.
I think such custom error wrappers should be more flexible and allow message and headers overrides.