UNPKG

@opra/common

Version:
24 lines (23 loc) 694 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InternalServerError = void 0; const opra_http_error_js_1 = require("../opra-http-error.js"); /** * 500 Internal Server Error * The server has encountered a situation it does not know how to handle. */ class InternalServerError extends opra_http_error_js_1.OpraHttpError { constructor() { super(...arguments); this.status = 500; } init(issue) { super.init({ message: 'Internal server error', code: 'INTERNAL_SERVER_ERROR', severity: 'fatal', ...issue, }); } } exports.InternalServerError = InternalServerError;