diff --git a/src/Exceptions/ResponseException.php b/src/Exceptions/ResponseException.php index c730b47..bf7e403 100644 --- a/src/Exceptions/ResponseException.php +++ b/src/Exceptions/ResponseException.php @@ -13,7 +13,7 @@ class ResponseException extends \Exception public function render() { return response()->json([ - 'code' => 20000, + 'code' => 10000, 'message' => $this->getMessage(), 'data' => null, ]); diff --git a/src/Traits/ResponseTrait.php b/src/Traits/ResponseTrait.php index daeff82..ff7da64 100644 --- a/src/Traits/ResponseTrait.php +++ b/src/Traits/ResponseTrait.php @@ -14,7 +14,7 @@ trait ResponseTrait { public function failure(?string $message = null) { - $code = 20000; + $code = 10000; $message = $message ?: 'DTO Unknown Error'; if (request()->wantsJson()) {