(message)
return response
Function to set custom error message for HTTP 400 requests.

    Args:
        message: Message as string to return to the client.

    Returns: Response object (instance of flask.wrappers.Response)
Function to set custom error message for HTTP 400 requests.
Function to set custom error message for HTTP 400 requests .
def bad_request(message):
    """Function to set custom error message for HTTP 400 requests.

    Args:
        message: Message as string to return to the client.

    Returns: Response object (instance of flask.wrappers.Response)

    """
    response = jsonify({'message': message})
    response.status_code = HTTP_STATUS_CODE_BAD_REQUEST
    return response
def bad_request ( message ) : response = jsonify ( { 'message' : message } ) response . status_code = HTTP_STATUS_CODE_BAD_REQUEST return response