Httpstat.us · API Governance Rules

Httpstat.us API Rules

Spectral linting rules defining API design standards and conventions for Httpstat.us.

0 Rules
View Rules File View on GitHub

Spectral Ruleset

Raw ↑
x-aid: httpstat:httpstat-rules
x-name: Httpstat.us Rules
description: >-
  Rules and guidelines for using the Httpstat.us API to simulate HTTP
  responses for testing client behavior, error handling, retry logic,
  and timeout scenarios.
x-type: Rules
x-tags:
  - HTTP
  - Status Codes
  - Testing
  - Rules
rules:
  - name: Use For Testing Only
    description: >-
      Httpstat.us is intended exclusively for testing and development.
      Do not depend on it as a production endpoint or for live system
      health checks.
  - name: Respect Sleep Limits
    description: >-
      The hosted instance enforces a maximum sleep duration of roughly
      230 seconds. Avoid issuing sleep values larger than this on the
      shared instance.
  - name: Honor Accept Header
    description: >-
      Set the Accept header to application/json when JSON responses
      are required. Otherwise the service responds with text/plain by
      default.
  - name: Validate Status Code Inputs
    description: >-
      Only request status codes that the service supports. Unknown or
      malformed codes return a 400 Bad Request response.
  - name: Use Random Range Wisely
    description: >-
      When using the /random/{range} endpoint, supply a comma separated
      list of codes or hyphenated ranges. Duplicate values bias the
      probability of selection.
  - name: Avoid Abusive Traffic
    description: >-
      The service is community hosted. Throttle requests, avoid load
      testing the live host, and self host the open source project for
      heavy use.
  - name: Treat Responses As Simulated
    description: >-
      Returned status codes are simulated and do not represent real
      server health. Do not infer dependency status from Httpstat
      responses.
x-maintainers:
  - FN: Kin Lane
    email: kin@apievangelist.com

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/httpstat-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.