HTTPError class extends Error (stack in). var err = new HTTPError(statusCode);