Skip to content

Commit

Permalink
Tried some code reformatting for GitHub.
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenLanger committed Mar 1, 2016
1 parent ebd11e3 commit ef86729
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ The module contains pre-defined custom responses:
- *mixed* **data**
- Any data that have to be returned to the user

return response with http code 500 and body:```javascript
return response with http code 500 and body:
```javascript
error: {
message: 'The database failed to respond.',
extraData: null or extraData
Expand All @@ -31,7 +32,8 @@ error: {
- *mixed* **extraData**
- Any data that have to be returned to the user

return response with http code 400 and body:```javascript
return response with http code 400 and body:
```javascript
error: {
message: 'Validation failed',
fields: {email: 'Email has to be unique'},
Expand All @@ -45,7 +47,8 @@ error: {
- *mixed* **extraData**
- Any data that have to be returned to the user

return response with http code 403 and body:```javascript
return response with http code 403 and body:
```javascript
error: {
message: 'The user does not have enough permissions to access this file.',
extraData: null or extraData
Expand All @@ -59,7 +62,8 @@ error: {
- *mixed* **extraData**
- Any data that have to be returned to the user

return response with http code 404 and body:```javascript
return response with http code 404 and body:
```javascript
error: {
message: 'User not found',
code: 404,
Expand All @@ -71,7 +75,8 @@ error: {
- *mixed* **extraData**
- Any data that have to be returned to the user

return response with http code 200 and body:```javascript
return response with http code 200 and body:
```javascript
{} or extraData
```

Expand Down

0 comments on commit ef86729

Please sign in to comment.