return an error when writing manifest v2 schema2
This commit is contained in:
parent
7ac3b05a1d
commit
463dc98a42
2 changed files with 18 additions and 2 deletions
|
@ -52,10 +52,11 @@ class ManifestBlobUnknown(V2RegistryException):
|
|||
|
||||
|
||||
class ManifestInvalid(V2RegistryException):
|
||||
def __init__(self, detail=None):
|
||||
def __init__(self, detail=None, http_status_code=400):
|
||||
super(ManifestInvalid, self).__init__('MANIFEST_INVALID',
|
||||
'manifest invalid',
|
||||
detail)
|
||||
detail,
|
||||
http_status_code)
|
||||
|
||||
|
||||
class ManifestUnknown(V2RegistryException):
|
||||
|
|
Reference in a new issue