import json


def reject(status_code, **kwargs):
    """
    Bad request.

    :param int status_code: Rejection status code
    :param dict kwargs: Rejection body JSON
    :return dict: Rejection response
    """
    body = json.dumps(kwargs) if kwargs else ''
    headers = {
        'content-length': len(body),
        'content-type': 'application/json; charset=utf-8',
    }
    return dict(body=body, headers=headers, statusCode=status_code)