def _gen_path_responses(http_method, resource_name):
    """
    This function receives a HTTP method and a resource name and generates the standard responses of the method

    :param str http_method:
        http method used

    :param str resource_name:
        name of the resource being served

    :rtype dict:
    :return: dict containing the standard responses of the method
    """
    if http_method == 'GET_Collection':
        return {'200': {'description': 'successful operation', 'schema': {
            'type': 'array', 'items': {'$ref': '#/definitions/%s' %
            resource_name}}}}
    elif http_method == 'PUT':
        return {'204': {'description': 'successfully updated'}, '400': {
            'description': 'invalid %s supplied' % resource_name}, '404': {
            'description': '%s not found' % resource_name}}
    elif http_method == 'GET':
        return {'200': {'description': 'successful operation', 'schema': {
            '$ref': '#/definitions/%s' % resource_name}}, '400': {
            'description': 'invalid ID supplied'}, '404': {'description': 
            '%s not found' % resource_name}}
    elif http_method == 'POST':
        return {'201': {'description': 'the %s was created successfully' %
            resource_name}, '405': {'description': 'invalid input'}}
    elif http_method == 'DELETE':
        return {'204': {'description': 'successfully deleted'}, '400': {
            'description': 'invalid ID supplied'}, '404': {'description': 
            '%s not found' % resource_name}}
    return None
