‹ Library

HTTP Status Codes

Quick reference — what those numbers on your server calls mean

2xx — Success

CodeMeaning
200OK — request succeeded
201Created — new resource created
204No Content — succeeded, nothing to return

3xx — Redirect

301Moved Permanently
302Found — temporary redirect (often an auth-gate bounce)
304Not Modified — cached version is still valid

4xx — Client Error (something wrong with the request)

400Bad Request — malformed request or missing required field
401Unauthorized — missing or bad token/credentials
403Forbidden — authenticated but not allowed (or path blocked, e.g. by .htaccess)
404Not Found — file/path doesn't exist at that URL
405Method Not Allowed — e.g. sent GET where POST is required
408Request Timeout
409Conflict — request conflicts with current state
413Payload Too Large
429Too Many Requests — rate limited

5xx — Server Error (something wrong on the server)

500Internal Server Error — script crashed / fatal error
501Not Implemented — server doesn't support the requested action
502Bad Gateway — upstream server sent an invalid response
503Service Unavailable — server overloaded, down, or timing out
504Gateway Timeout — upstream server took too long to respond

What you've actually been seeing on yttcom.net

200Normal — call worked
401Bad or missing token param
404Wrong path — file doesn't exist there
500PHP fatal error in the script itself (bad path, syntax error)
503"upstream connect error / connection timeout" — server overloaded or briefly down; not a code problem, just retry after a few seconds

Rule of thumb: 4xx = fix the request. 5xx = fix (or wait out) the server.