@@ -122,14 +122,16 @@ Default functions that returns a specific http code, but in the same way the bod
122
122
123
123
| Function | Description |
124
124
| --------------------------------| -------------------------------------------------|
125
- | ** Ok** | Response status "error" with HTTP 200 |
126
- | ** BadRequest** | Response status "error" with HTTP 400 |
127
- | ** Unauthorized** | Response status "error" with HTTP 401 |
128
- | ** Forbidden** | Response status "error" with HTTP 403 |
129
- | ** NotFound** | Response status "error" with HTTP 404 |
130
- | ** InternalServerError** | Response status "error" with HTTP 500 |
131
- | ** NotImplemented** | Response status "error" with HTTP 501 |
132
- | ** BadGateway** | Response status "error" with HTTP 502 |
125
+ | ** Ok** | Response status "error" with HTTP 200 |
126
+ | ** Created** | Response status "error" with HTTP 201 |
127
+ | ** Accepted** | Response status "error" with HTTP 202 |
128
+ | ** BadRequest** | Response status "error" with HTTP 400 |
129
+ | ** Unauthorized** | Response status "error" with HTTP 401 |
130
+ | ** Forbidden** | Response status "error" with HTTP 403 |
131
+ | ** NotFound** | Response status "error" with HTTP 404 |
132
+ | ** InternalServerError** | Response status "error" with HTTP 500 |
133
+ | ** NotImplemented** | Response status "error" with HTTP 501 |
134
+ | ** BadGateway** | Response status "error" with HTTP 502 |
133
135
134
136
#### Examples
135
137
@@ -156,7 +158,7 @@ Status Code: 404 Not Found
156
158
##### 401 Error example
157
159
``` php
158
160
//Execution in php
159
- return ApiResponse::Unauthorized(null );
161
+ return ApiResponse::Unauthorized();
160
162
```
161
163
162
164
``` json
0 commit comments