1
0
mirror of https://github.com/distribution/distribution synced 2024-11-12 05:45:51 +01:00
distribution/registry/api
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
..
errcode fix: if reference exceeds the threshold return 400 and detail 2023-11-22 16:06:33 +00:00
v2 registry/api: move all errors to "errcode" package 2023-09-04 18:02:54 +02:00