CoolFace
Apppublic

opusdev/vector-similarity-api

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes
HttpStatusCode.js78 linesDownload Raw Back to helpers
1const HttpStatusCode = {2  Continue: 100,3  SwitchingProtocols: 101,4  Processing: 102,5  EarlyHints: 103,6  Ok: 200,7  Created: 201,8  Accepted: 202,9  NonAuthoritativeInformation: 203,10  NoContent: 204,11  ResetContent: 205,12  PartialContent: 206,13  MultiStatus: 207,14  AlreadyReported: 208,15  ImUsed: 226,16  MultipleChoices: 300,17  MovedPermanently: 301,18  Found: 302,19  SeeOther: 303,20  NotModified: 304,21  UseProxy: 305,22  Unused: 306,23  TemporaryRedirect: 307,24  PermanentRedirect: 308,25  BadRequest: 400,26  Unauthorized: 401,27  PaymentRequired: 402,28  Forbidden: 403,29  NotFound: 404,30  MethodNotAllowed: 405,31  NotAcceptable: 406,32  ProxyAuthenticationRequired: 407,33  RequestTimeout: 408,34  Conflict: 409,35  Gone: 410,36  LengthRequired: 411,37  PreconditionFailed: 412,38  PayloadTooLarge: 413,39  UriTooLong: 414,40  UnsupportedMediaType: 415,41  RangeNotSatisfiable: 416,42  ExpectationFailed: 417,43  ImATeapot: 418,44  MisdirectedRequest: 421,45  UnprocessableEntity: 422,46  Locked: 423,47  FailedDependency: 424,48  TooEarly: 425,49  UpgradeRequired: 426,50  PreconditionRequired: 428,51  TooManyRequests: 429,52  RequestHeaderFieldsTooLarge: 431,53  UnavailableForLegalReasons: 451,54  InternalServerError: 500,55  NotImplemented: 501,56  BadGateway: 502,57  ServiceUnavailable: 503,58  GatewayTimeout: 504,59  HttpVersionNotSupported: 505,60  VariantAlsoNegotiates: 506,61  InsufficientStorage: 507,62  LoopDetected: 508,63  NotExtended: 510,64  NetworkAuthenticationRequired: 511,65  WebServerIsDown: 521,66  ConnectionTimedOut: 522,67  OriginIsUnreachable: 523,68  TimeoutOccurred: 524,69  SslHandshakeFailed: 525,70  InvalidSslCertificate: 526,71};72 73Object.entries(HttpStatusCode).forEach(([key, value]) => {74  HttpStatusCode[value] = key;75});76 77export default HttpStatusCode;78