DefinitelyTyped/types/http-status/http-status-tests.ts
2017-03-24 14:27:52 -07:00

96 lines
2.5 KiB
TypeScript

import httpStatus = require('http-status');
var str: string;
var nmr: number;
str = httpStatus[100];
str = httpStatus[101];
str = httpStatus[200];
str = httpStatus[201];
str = httpStatus[202];
str = httpStatus[203];
str = httpStatus[204];
str = httpStatus[205];
str = httpStatus[206];
str = httpStatus[300];
str = httpStatus[301];
str = httpStatus[302];
str = httpStatus[303];
str = httpStatus[304];
str = httpStatus[305];
str = httpStatus[307];
str = httpStatus[400];
str = httpStatus[401];
str = httpStatus[402];
str = httpStatus[403];
str = httpStatus[404];
str = httpStatus[405];
str = httpStatus[406];
str = httpStatus[407];
str = httpStatus[408];
str = httpStatus[409];
str = httpStatus[410];
str = httpStatus[411];
str = httpStatus[412];
str = httpStatus[413];
str = httpStatus[414];
str = httpStatus[415];
str = httpStatus[416];
str = httpStatus[417];
str = httpStatus[422];
str = httpStatus[429];
str = httpStatus[451];
str = httpStatus[500];
str = httpStatus[501];
str = httpStatus[502];
str = httpStatus[503];
str = httpStatus[504];
str = httpStatus[505];
nmr = httpStatus.CONTINUE;
nmr = httpStatus.SWITCHING_PROTOCOLS;
nmr = httpStatus.OK;
nmr = httpStatus.CREATED;
nmr = httpStatus.ACCEPTED;
nmr = httpStatus.NON_AUTHORITATIVE_INFORMATION;
nmr = httpStatus.NO_CONTENT;
nmr = httpStatus.RESET_CONTENT;
nmr = httpStatus.PARTIAL_CONTENT;
nmr = httpStatus.MULTIPLE_CHOICES;
nmr = httpStatus.MOVED_PERMANENTLY;
nmr = httpStatus.FOUND;
nmr = httpStatus.SEE_OTHER;
nmr = httpStatus.NOT_MODIFIED;
nmr = httpStatus.USE_PROXY;
nmr = httpStatus.TEMPORARY_REDIRECT;
nmr = httpStatus.BAD_REQUEST;
nmr = httpStatus.UNAUTHORIZED;
nmr = httpStatus.PAYMENT_REQUIRED;
nmr = httpStatus.FORBIDDEN;
nmr = httpStatus.NOT_FOUND;
nmr = httpStatus.METHOD_NOT_ALLOWED;
nmr = httpStatus.NOT_ACCEPTABLE;
nmr = httpStatus.PROXY_AUTHENTICATION_REQUIRED;
nmr = httpStatus.REQUEST_TIMEOUT;
nmr = httpStatus.CONFLICT;
nmr = httpStatus.GONE;
nmr = httpStatus.LENGTH_REQUIRED;
nmr = httpStatus.PRECONDITION_FAILED;
nmr = httpStatus.REQUEST_ENTITY_TOO_LARGE;
nmr = httpStatus.REQUEST_URI_TOO_LONG;
nmr = httpStatus.UNSUPPORTED_MEDIA_TYPE;
nmr = httpStatus.REQUESTED_RANGE_NOT_SATISFIABLE;
nmr = httpStatus.EXPECTATION_FAILED;
nmr = httpStatus.UNPROCESSABLE_ENTITY;
nmr = httpStatus.TOO_MANY_REQUESTS;
nmr = httpStatus.UNAVAILABLE_FOR_LEGAL_REASONS;
nmr = httpStatus.INTERNAL_SERVER_ERROR;
nmr = httpStatus.NOT_IMPLEMENTED;
nmr = httpStatus.BAD_GATEWAY;
nmr = httpStatus.SERVICE_UNAVAILABLE;
nmr = httpStatus.GATEWAY_TIMEOUT;
nmr = httpStatus.HTTP_VERSION_NOT_SUPPORTED;