|
| 1 | +// flow-typed signature: 573c576fe34eb3c3c65dd7a9c90a46d2 |
| 2 | +// flow-typed version: b43dff3e0e/http-errors_v1.x.x/flow_>=v0.25.x |
| 3 | + |
| 4 | +declare module 'http-errors' { |
| 5 | + declare class SpecialHttpError extends HttpError { |
| 6 | + constructor(): SpecialHttpError; |
| 7 | + } |
| 8 | + declare class HttpError extends Error { |
| 9 | + expose: bool; |
| 10 | + message: string; |
| 11 | + status: number; |
| 12 | + statusCode: number; |
| 13 | + } |
| 14 | + declare module.exports: { |
| 15 | + (status?: number, message?: string, props?: Object): HttpError; |
| 16 | + HttpError: typeof HttpError; |
| 17 | + BadRequest: typeof SpecialHttpError; |
| 18 | + Unauthorized: typeof SpecialHttpError; |
| 19 | + PaymentRequired: typeof SpecialHttpError; |
| 20 | + Forbidden: typeof SpecialHttpError; |
| 21 | + NotFound: typeof SpecialHttpError; |
| 22 | + MethodNotAllowed: typeof SpecialHttpError; |
| 23 | + NotAcceptable: typeof SpecialHttpError; |
| 24 | + ProxyAuthenticationRequired: typeof SpecialHttpError; |
| 25 | + RequestTimeout: typeof SpecialHttpError; |
| 26 | + Conflict: typeof SpecialHttpError; |
| 27 | + Gone: typeof SpecialHttpError; |
| 28 | + LengthRequired: typeof SpecialHttpError; |
| 29 | + PreconditionFailed: typeof SpecialHttpError; |
| 30 | + PayloadTooLarge: typeof SpecialHttpError; |
| 31 | + URITooLong: typeof SpecialHttpError; |
| 32 | + UnsupportedMediaType: typeof SpecialHttpError; |
| 33 | + RangeNotStatisfiable: typeof SpecialHttpError; |
| 34 | + ExpectationFailed: typeof SpecialHttpError; |
| 35 | + ImATeapot: typeof SpecialHttpError; |
| 36 | + MisdirectedRequest: typeof SpecialHttpError; |
| 37 | + UnprocessableEntity: typeof SpecialHttpError; |
| 38 | + Locked: typeof SpecialHttpError; |
| 39 | + FailedDependency: typeof SpecialHttpError; |
| 40 | + UnorderedCollection: typeof SpecialHttpError; |
| 41 | + UpgradeRequired: typeof SpecialHttpError; |
| 42 | + PreconditionRequired: typeof SpecialHttpError; |
| 43 | + TooManyRequests: typeof SpecialHttpError; |
| 44 | + RequestHeaderFieldsTooLarge: typeof SpecialHttpError; |
| 45 | + UnavailableForLegalReasons: typeof SpecialHttpError; |
| 46 | + InternalServerError: typeof SpecialHttpError; |
| 47 | + NotImplemented: typeof SpecialHttpError; |
| 48 | + BadGateway: typeof SpecialHttpError; |
| 49 | + ServiceUnavailable: typeof SpecialHttpError; |
| 50 | + GatewayTimeout: typeof SpecialHttpError; |
| 51 | + HTTPVersionNotSupported: typeof SpecialHttpError; |
| 52 | + VariantAlsoNegotiates: typeof SpecialHttpError; |
| 53 | + InsufficientStorage: typeof SpecialHttpError; |
| 54 | + LoopDetected: typeof SpecialHttpError; |
| 55 | + BandwidthLimitExceeded: typeof SpecialHttpError; |
| 56 | + NotExtended: typeof SpecialHttpError; |
| 57 | + NetworkAuthenticationRequired: typeof SpecialHttpError; |
| 58 | + } |
| 59 | +} |
0 commit comments