import { HttpStatus, TStatusGroup } from './smartstatus.classes.http'; export class Status200 extends HttpStatus { constructor() { super({ code: 200, text: 'OK', description: `Standard response for successful HTTP requests. The actual response will depend on the request method used. In a GET request, the response will contain an entity corresponding to the requested resource. In a POST request, the response will contain an entity describing or containing the result of the action.` }); } } HttpStatus.addStatus('200', Status200); // tslint:disable-next-line: max-classes-per-file export class Status201 extends HttpStatus { constructor() { super({ code: 201, text: 'Created', description: `The request has been fulfilled, resulting in the creation of a new resource.` }); } } HttpStatus.addStatus('201', Status201); // tslint:disable-next-line: max-classes-per-file export class Status202 extends HttpStatus { constructor() { super({ code: 202, text: 'Accepted', description: `The request has been accepted for processing, but the processing has not been completed. The request might or might not be eventually acted upon, and may be disallowed when processing occurs.` }); } } HttpStatus.addStatus('202', Status202); // tslint:disable-next-line: max-classes-per-file export class Status203 extends HttpStatus { constructor() { super({ code: 203, text: 'Non-Authoritative Information', description: `The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin's response.` }); } } HttpStatus.addStatus('203', Status203); // tslint:disable-next-line: max-classes-per-file export class Status204 extends HttpStatus { constructor() { super({ code: 204, text: 'Non-Authoritative Information', description: `The server successfully processed the request and is not returning any content.` }); } } HttpStatus.addStatus('204', Status204); // tslint:disable-next-line: max-classes-per-file export class Status205 extends HttpStatus { constructor() { super({ code: 205, text: 'Reset Content', description: `The server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the requester reset the document view.` }); } } HttpStatus.addStatus('205', Status205); // tslint:disable-next-line: max-classes-per-file export class Status206 extends HttpStatus { constructor() { super({ code: 206, text: 'Partial Content', description: `The server is delivering only part of the resource (byte serving) due to a range header sent by the client. The range header is used by HTTP clients to enable resuming of interrupted downloads, or split a download into multiple simultaneous streams.` }); } } HttpStatus.addStatus('206', Status206); // tslint:disable-next-line: max-classes-per-file export class Status207 extends HttpStatus { constructor() { super({ code: 207, text: 'Multi-Status', description: `The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.` }); } } HttpStatus.addStatus('207', Status207); // tslint:disable-next-line: max-classes-per-file export class Status208 extends HttpStatus { constructor() { super({ code: 208, text: 'Already Reported', description: `The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.` }); } } HttpStatus.addStatus('208', Status208); // tslint:disable-next-line: max-classes-per-file export class Status226 extends HttpStatus { constructor() { super({ code: 226, text: 'IM Used', description: `The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.` }); } } HttpStatus.addStatus('226', Status226);