-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d878287
commit ead6aa3
Showing
4 changed files
with
245 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
|
||
namespace Firebit\laravel\ApiResponse; | ||
|
||
|
||
class ApiResponseCode | ||
{ | ||
// Informational (100 - 199) | ||
|
||
// Success (200 - 299) | ||
const HTTP_SUCCESS = 200; | ||
const HTTP_SUCCESS_CREATED = 201; | ||
const HTTP_SUCCESS_ACCEPTED = 202; | ||
const HTTP_SUCCESS_NO_CONTENT = 204; | ||
|
||
// Redirection (300 - 399) | ||
const HTTP_REDIRECT_PERMANENT = 301; | ||
const HTTP_REDIRECT_TEMPORARY = 302; | ||
|
||
// Client errors (400 - 499) | ||
const HTTP_ERROR_CLIENT_INVALID_CREDENTIALS = 401; | ||
const HTTP_ERROR_CLIENT_PAYMENT_REQUIRED = 402; | ||
const HTTP_ERROR_CLIENT_LOGIN_REQUIRED = 401; | ||
const HTTP_ERROR_CLIENT_ACCESS_DENIED = 403; | ||
const HTTP_ERROR_CLIENT_NOT_FOUND = 404; | ||
const HTTP_ERROR_CLIENT_NOT_ACCEPTABLE = 406; | ||
const HTTP_ERROR_CLIENT_VALIDATION_ERROR = 422; | ||
const HTTP_ERROR_CLIENT_TOO_MANY_REQUESTS = 429; | ||
|
||
// Server error (500 - 599) | ||
const HTTP_ERROR_SERVER_INTERNAL = 500; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters