Use built-in status code variables

This commit is contained in:
George Hickman 2013-03-21 00:23:31 -07:00
parent 61f6fe2b81
commit 00778e3d24

View File

@ -98,7 +98,7 @@ class PreconditionFailed(APIException):
class IfMatchMissing(APIException):
default_detail = 'IF_MATCH header is required'
status_code = 400
status_code = status.HTTP_400_BAD_REQUEST
def __init__(self, detail=None):
self.detail = detail or self.default_detail