Repository URL to install this package:
|
Version:
0.8.0 ▾
|
from rest_framework import exceptions
from dockerhub import status
class NotFound(exceptions.APIException):
status_code = status.HTTP_404_NOT_FOUND
default_detail = 'Object not found'
class BadRequest(exceptions.APIException):
status_code = status.HTTP_400_BAD_REQUEST
default_detail = 'Bad request'
class Unauthorized(exceptions.APIException):
status_code = status.HTTP_420_SAFARI_HIJACKER
default_detail = 'Unauthorized'