Skip to content
Snippets Groups Projects
Commit a42e8aad authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

add Errors.php

parent 8d2e3c25
No related branches found
No related tags found
No related merge requests found
<?php
class Errors {
const E_SUCCESS = "E_SUCCESS";
const E_UNAUTHORIZED = "E_UNAUTHORIZED";
const E_UNKNOWN_METHOD = "E_UNKNOWN_METHOD";
const E_UNKNOWN_PLUGIN = "E_UNKNOWN_PLUGIN";
const E_SCHEMA_MISMATCH = "E_SCHEMA_MISMATCH";
static function to_json(string $code) {
return json_encode(["error" => ["code" => $code]]);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment