Changeset View
Changeset View
Standalone View
Standalone View
swh/web/common/exc.py
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | class ForbiddenExc(Exception): | ||||
""" | """ | ||||
pass | pass | ||||
class LargePayloadExc(Exception): | class LargePayloadExc(Exception): | ||||
"""The input size is too large. | """The input size is too large. | ||||
Example: Asking to resolve 10000 persistent identifier when the limit | Example: Asking to resolve 10000 SWHIDs when the limit is 1000. | ||||
is 1000. | |||||
""" | """ | ||||
pass | pass | ||||
http_status_code_message = { | http_status_code_message = { | ||||
400: "Bad Request", | 400: "Bad Request", | ||||
401: "Unauthorized", | 401: "Unauthorized", | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |