jumpserver/apps/common/exceptions.py

9 lines
193 B
Python
Raw Normal View History

2017-12-07 05:01:33 +00:00
# -*- coding: utf-8 -*-
#
2020-07-06 03:14:20 +00:00
from rest_framework.exceptions import APIException
from rest_framework import status
2017-12-07 05:01:33 +00:00
2020-07-06 03:14:20 +00:00
class JMSException(APIException):
status_code = status.HTTP_400_BAD_REQUEST