         codes = http.STATUS_CODES
         message = codes[methodNotAllowed]
         doesJson = response.accepts /json/
-        response.writeHead(methodNotAllowed, message)
+        response writeHead methodNotAllowed, message
         descriptor = error: message, code: methodNotAllowed
-        @emit("unsupported", request, response, next)
+        @emit "unsupported", request, response, next
         return response.send descriptor if doesJson
         response.send message; this
 

        doesJson = response.accepts /json/
        pathname = try url.parse(request.url).pathname
        checkIfSupported = (method) => @[method] isnt @unsupported
        supported = _.filter(knowns, checkIfSupported)
        descriptor = methods: supported, resource: pathname
        return response.send descriptor if doesJson
        formatted = supported.join(", ") + "\r\n"

        parameters = [request, response, next]
        tokens = super(parameters...)
        method = request?.method?.toUpperCase()?.trim()
        return @unsupported parameters... unless method in knowns
        missing = "Missing implementation for #{method} method"
        throw new Error missing unless method of this
        variables = [tokens.resource, tokens.domain]
        flags = @preprocess request, response, variables...
        return if response.headersSent or flags is yes
        result = @[method](request, response, variables...)
        @postprocess request, response, result, variables

    # This method should generally be used to obtain HTTP methods that
    # are allowed on this resources. This is not the only possible way
