Files
plexjs/src/http/errors/PayloadTooLarge.ts
2023-10-26 21:12:05 -05:00

15 lines
315 B
TypeScript

import { BaseHTTPError } from './base';
export default class PayloadTooLarge extends BaseHTTPError {
statusCode = 413;
title = 'Payload Too Large';
retryAfter: number | null;
constructor(detail: string = '', retryAfter: number | null = null) {
super(detail);
this.retryAfter = retryAfter;
}
}