15 lines
430 B
Python
15 lines
430 B
Python
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
|