distribution/registry/api/errcode
Milos Gajdos 35abc92237
fix: if reference exceeds the threshold return 400 and detail
If the reference in the API request exceeds the threshold allowed by the
reference package (NOTE: this isn't defined by distribution
specification!) we return 500 back to the client.

This commit makes sure we return 400 and the explanation of the error in
the returned JSON payload.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2023-11-22 16:06:33 +00:00
..
errors.go fix: if reference exceeds the threshold return 400 and detail 2023-11-22 16:06:33 +00:00
errors_test.go registry/api/errcode: split Register to internal / exported 2023-09-04 18:03:00 +02:00
handler.go registry: fix binary JSON content-type 2019-01-14 09:04:42 +00:00
register.go registry/api/errcode: split Register to internal / exported 2023-09-04 18:03:00 +02:00