mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
added missing constant file for http status
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\ValueObjects\Constants;
|
||||
|
||||
final class HttpStatus {
|
||||
public const OK_WITH_MESSAGE = 200;
|
||||
|
||||
public const RESOURCE_CREATED = 201;
|
||||
|
||||
public const REQUEST_ACCEPTED = 202;
|
||||
|
||||
public const OK = 204;
|
||||
|
||||
public const BAD_REQUEST = 400;
|
||||
|
||||
public const ACCESS_UNAUTHORISED = 401;
|
||||
|
||||
public const ACCESS_FORBIDDEN = 403;
|
||||
|
||||
public const RESOURCE_NOT_FOUND = 404;
|
||||
|
||||
public const METHOD_NOT_FOUND = 405;
|
||||
|
||||
public const RESOURCE_ALREADY_EXISTS = 409;
|
||||
|
||||
public const VALIDATION_FAILED = 422;
|
||||
|
||||
public const SERVER_ERROR = 500;
|
||||
}
|
||||
Reference in New Issue
Block a user