UNPKG

@opra/common

Version:
17 lines (16 loc) 442 B
import { OpraHttpError } from '../opra-http-error.js'; /** * 500 Internal Server Error * The server has encountered a situation it does not know how to handle. */ export class InternalServerError extends OpraHttpError { status = 500; init(issue) { super.init({ message: 'Internal server error', code: 'INTERNAL_SERVER_ERROR', severity: 'fatal', ...issue, }); } }