( persicsb | 2018. 03. 07., sze – 15:24 )

"Igen? És hogy adod vissza hibakódokkal, hogy azért nem sikeres a regisztráció, mert a validáció szerint a megadott cím nem létezik?"

The 4xx (Client Error) class of status code indicates that the client
seems to have erred. Except when responding to a HEAD request, the
server SHOULD send a representation containing an explanation of the
error situation, and whether it is a temporary or permanent
condition.

6.5.1. 400 Bad Request

The 400 (Bad Request) status code indicates that the server cannot or
will not process the request due to something that is perceived to be
a client error (e.g., malformed request syntax, invalid request
message framing, or deceptive request routing).

Szóval 400 a hibakód, és van egy reprezentáció, ami a hiba okát írja le. Ennyi. De olyan nincs, hogy minden kliens oldali hibára HTTP 400 a hibakód, aztán a payloadban meg van egy saját hibakezelési réteg.