Whenever my code throws an exception the client gets error 500 internal server error.
errors = {
'UserNotFoundException': {
'message': 'User does not exist.',
'status': 404,
}
}
bp = Blueprint('users', __name__)
api = Api(bp, errors=errors)
I cannot throw UserNotFoundException
from my routes without causing error 500. What I've defined in errors
seems to be ignored.