Found missing () on response.end() for some error parts.