code: def requires_application_json(f):
      
  
      @functools.wraps(f)
      def wrapped(*args, **kwargs):
          from flask import request
          if request.get_json(silent=True) is None:
              er = ErrorResponse(description='Improper Content-Type header. Expecting "application/json"')
              return to_json_response(er), HTTPStatus.BAD_REQUEST
          else:
              return f(*args, **kwargs)
  
      return wrapped
docs: Decorator for enforcing application/json Content-Type