Update Readme.md

This commit is contained in:
Franklin Blanco 2022-08-31 15:02:23 -04:00 committed by GitHub
parent 05250dcdbd
commit 6a1e1857c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -90,10 +90,10 @@ Much better and more readable for me.
A key-message error type to return back a neat, well formatted error to a frontend. The key is optional, as I won't force you to use internationalization.
```json
{
"key": "ERROR_KEY",
"message": "This is the part where you put the error message."
}
{
"key": "ERROR_KEY",
"message": "This is the part where you put the error message."
}
```
This is supposed to be sent back to the client, so the client can display the error to the user, and/or get the translation (with the key). It is optional.