Skip to content

Instantly share code, notes, and snippets.

@vkostyukov
Last active June 21, 2026 12:56
Show Gist options
  • Select an option

  • Save vkostyukov/32c84c0c01789425c29a to your computer and use it in GitHub Desktop.

Select an option

Save vkostyukov/32c84c0c01789425c29a to your computer and use it in GitHub Desktop.
HTTP status codes used by world-famous APIs
API Status Codes
Twitter 200, 304, 400, 401, 403, 404, 406, 410, 420, 422, 429, 500, 502, 503, 504
Stripe 200, 400, 401, 402, 404, 429, 500, 502, 503, 504
Github 200, 400, 422, 301, 302, 304, 307, 401, 403
Pagerduty 200, 201, 204, 400, 401, 403, 404, 408, 500
NewRelic Plugins 200, 400, 403, 404, 405, 413, 500, 502, 503, 503
Etsy 200, 201, 400, 403, 404, 500, 503
Dropbox 200, 400, 401, 403, 404, 405, 429, 503, 507
Spotify 200, 201, 204, 304, 400, 401, 403, 404, 429, 500, 502, 503
Google Cloud 200, 301, 304, 307, 308, 400, 401, 403, 404, 405, 409, 411, 412, 416, 429, 500, 501, 503
HipChat 200, 201, 202, 400, 401, 403, 404, 405, 429, 500, 503
Telegram 200, 303, 400, 401, 403, 404, 420, 500
Pocket 200, 400, 401, 403, 503
Uber 200, 201, 400, 401, 403, 404, 406, 409, 422, 429, 500

Used by either one of them: 200, 201, 202, 204, 301, 302, 303, 304, 307, 308, 400, 401, 402, 403, 404, 405, 406, 408, 409, 410, 411, 412, 413, 416, 420, 422, 429, 500, 501, 502, 503, 504, 507

Used by at least two of them: 200, 201, 204, 301, 304, 307, 400, 401, 403, 404, 405, 406, 409, 420, 422, 429, 500, 502, 503, 504

Used by at least three of them: 200, 201, 304, 400, 401, 403, 404, 405, 422, 429, 500, 502, 503

Used by at least four of them: 200, 201, 304, 400, 401, 403, 404, 405, 429, 500, 502, 503

Used by at least five of them: 200, 201, 400, 401, 403, 404, 405, 429, 500, 503

Used by all of them: 200, 400

@suls

suls commented Dec 11, 2015

Copy link
Copy Markdown

@rocco

rocco commented Feb 5, 2016

Copy link
Copy Markdown

I found this Gist here: http://racksburg.com/choosing-an-http-status-code/ - great read on the topic too.

@JohnBugner

Copy link
Copy Markdown

Google Cloud's link leads to Spotify's API. I think it was meant to lead to: https://cloud.google.com/storage/docs/xml-api/reference-status#http-status-and-error-codes . This is the XML API, but there's apparently a slightly different API for JSON: https://cloud.google.com/storage/docs/json_api/v1/status-codes#http-status-and-error-codes

@paulohfcanuto

Copy link
Copy Markdown

@dungsaga

dungsaga commented Aug 3, 2017

Copy link
Copy Markdown

https://httpstatuses.com/ is easier to read and has links to sections in RFC document.

@SteveOnorato

Copy link
Copy Markdown

@dret

dret commented Feb 14, 2018

Copy link
Copy Markdown

in case you're interested in a list that has links to all specifications and is available in machine-readable format as well: http://webconcepts.info/concepts/http-status-code/

@Yousha

Yousha commented Feb 2, 2020

Copy link
Copy Markdown

You forgot Discord: https://discordapp.com/developers/docs/topics/opcodes-and-status-codes

Pagerduty and uber pages NOT found. wrong page?

@fzyzcjy

fzyzcjy commented Mar 10, 2020

Copy link
Copy Markdown

good post, thanks!

@feenst

feenst commented Apr 8, 2020

Copy link
Copy Markdown

GitHub returns 404 in at least some cases.

@ad-m

ad-m commented Apr 14, 2020

Copy link
Copy Markdown

Modern status codes for Google Cloud: 200, 400, 401, 403, 404, 409, 429, 499, 500, 501, 503, 504
Source: https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment