exampleapp/modules/Src/ResponsesCode.php

33 lines
627 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Modules\Src;
abstract class ResponsesCode
{
/**
* Код ответа в случае внутренней ошибки сервера
*/
const SERVER_ERROR_CODE = 500;
/**
* Код ответа в случае если ресурс не найден
*/
const NOT_FOUND_CODE = 404;
/**
* Ошибка валидации или Unprocessable Entity
*/
const VALIDATION_FAILED_CODE = 422;
/**
* Неавторизованный юзер
*/
const NOT_AUTHORIZE_CODE = 401;
/**
* Все ок
*/
const OK_CODE = 200;
}