import json


def rate_limit(*args):
    """ Mock requests to Misfit with rate limit error: 429 """
    headers = {
        'x-ratelimit-limit': '150',
        'x-ratelimit-remaining': '148',
        'x-ratelimit-reset': '1418424178'
    }
    json_content = {'error_code': 429, 'error_message': 'Rate limit exceeded'}
    return {'status_code': 429, 'content': json.dumps(json_content),
            'headers': headers}