Stephen J Day
86ffe515df
Export ServeJSON for serving error codes
...
This changeset provides a common http handler for serving errcodes. This should
unify http responses across webservices in the face of errors.
Several type assertions have been added, as well, to ensure the error interface
is implemented.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-07-16 12:14:14 -07:00
Doug Davis
94e2e9f4a0
Add ability to pass in substitution args into an Error
...
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-07-15 11:02:10 -07:00
Doug Davis
cb45ec56ff
Add back in the "errors" wrapper in the Errors serialization
...
See: https://github.com/docker/distribution/pull/548/files#r32794064
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-06-18 18:00:26 -07:00
Doug Davis
441f7cac87
Round 4
...
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-06-11 21:33:35 -07:00
Doug Davis
38393b63b7
Round 3 - Add Register function
...
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-06-02 10:01:21 -07:00
Doug Davis
8a0827f799
Round 2
...
Make Errors a []Error
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-05-26 17:18:32 -07:00
Doug Davis
0a6a6f5b81
Move ErrorCode logic to new errcode package
...
Make HTTP status codes match the ErrorCode by looking it up in the Descriptors
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-05-26 13:18:54 -07:00