first commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
from .handlers import method_not_allowed, unsupported_media_type
|
||||
@@ -0,0 +1,14 @@
|
||||
from flask import jsonify
|
||||
from app.helpers.response_helper import ResponseHelper
|
||||
|
||||
def method_not_allowed(error):
|
||||
return jsonify({"message": "Method Not Allowed"}), 405
|
||||
|
||||
def not_found(error):
|
||||
return jsonify({"message": "Resource not found"}), 404
|
||||
|
||||
def bad_request(error):
|
||||
return jsonify({"message": "Bad Request"}), 400
|
||||
|
||||
def unsupported_media_type(error):
|
||||
return jsonify({"message": "Unsupported Media Type"}), 415
|
||||
Reference in New Issue
Block a user