Setting status code

App\Http\Status.php


      

namespace App\Http;

class Status{

    //code
    public static $OK = 0;
    public static $SERVER_ERROR = 500;

    //msg
    public static $OK_MSG = "Success";
    public static $SERVER_ERROR_MSG = "The server is off ~~~";
}
Copy the code