StatusCodes (magic/status-codes.ts)

typescript-backend-toolkit · src/plugins/magic/status-codes.ts · typescript · MIT
integration

Provides standard HTTP status codes for API responses.

// Source: https://github.com/muneebhashone/typescript-backend-toolkit | License: MIT | Copyright 2024 Muneeb Hussain
// Provided via justclaw.it.com; keep this notice with the code.
export const StatusCodes = {
    /**
     * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.1
     *
     * This interim response indicates that everything so far is OK and that the client should continue with the request or ignore it if it is already finished.
     */
    CONTINUE: 100,
    /**
     * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.2
     *
     * This code is sent in response to an Upgrade request header by the client, and indicates the protocol the server is switching too.
     */
    SWITCHING_PROTOCOLS: 101,
    /**
     * Official Documen

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key