17
app/core/http/common.py
Normal file
17
app/core/http/common.py
Normal file
@ -0,0 +1,17 @@
|
||||
from enum import IntEnum
|
||||
|
||||
|
||||
|
||||
class Http():
|
||||
"""Common HTTP Related objects"""
|
||||
|
||||
|
||||
class Status(IntEnum):
|
||||
"""HTTP server status codes."""
|
||||
|
||||
OK = 200
|
||||
CREATED = 201
|
||||
|
||||
BAD_REQUEST = 400
|
||||
|
||||
SERVER_ERROR = 500
|
||||
Reference in New Issue
Block a user