HTTP status codes are grouped into five classes by their first digit, and choosing the right one lets clients react correctly without parsing the body.
2xx Success — the request worked
3xx Redirection — further action / resource moved
4xx Client error — the caller did something wrong
5xx Server error — the server failed
The codes you actually use
2xx
