

class HTTP404(object):
    """
    HTTP 404 Response
    """

    def __call__(self, environ, start_response):
        start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
        return ['']



def HTTP404(environ, start_response):
    """
    HTTP 404 Response
    """
    start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
    return ['']

Convert HTTP404 to a function.
Convert HTTP404 to a function.

  
  
- class HTTP404(object):
+ def HTTP404(environ, start_response):
      """
      HTTP 404 Response
      """
+     start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
+     return ['']
  
-     def __call__(self, environ, start_response):
-         start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
-         return ['']
- 
Convert HTTP404 to a function.
## Code Before:


class HTTP404(object):
    """
    HTTP 404 Response
    """

    def __call__(self, environ, start_response):
        start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
        return ['']

## Instruction:
Convert HTTP404 to a function.
## Code After:


def HTTP404(environ, start_response):
    """
    HTTP 404 Response
    """
    start_response('404 NOT FOUND', [('Content-Type', 'text/plain')])
    return ['']
