Instead of having an error code for each and every application error.

Why not simply return basic http code such as 

```
422 Unprocessable Entity
401 Unauthorized

```

then you would identify the specific error in the body

```
[
  {
    "error": {
      "object": "user",
      "property": "email",
      "message": "email address is required"
    }
  }
]

```

Is there going to be any problem with this?