We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3917372 commit 8dfdf59Copy full SHA for 8dfdf59
application/controllers/api/Example.php
@@ -57,7 +57,7 @@ public function user_get()
57
$this->set_response([
58
'status' => FALSE,
59
'error' => 'User could not be found'
60
- ], REST_Controller::NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
+ ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
61
}
62
63
@@ -103,7 +103,7 @@ public function users_get()
103
104
105
'error' => 'No users were found'
106
107
108
109
0 commit comments