- Complete GGZ Ecademy Laravel backend application - RESTful API for learning products, members, filters - Authentication and authorization system - Database migrations and seeders - Custom CRUD generator commands - Email notification system - Integration with frontend applications
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Error\AuthController;
|
||||
|
||||
use App\Http\Controllers\Error\ErrorInterface;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class MissingBearerTokenError implements ErrorInterface
|
||||
{
|
||||
public function getStatusCode(): int
|
||||
{
|
||||
return Response::HTTP_BAD_REQUEST;
|
||||
}
|
||||
|
||||
public function getErrorCode(): string
|
||||
{
|
||||
return 'missing.bearer_token';
|
||||
}
|
||||
|
||||
public function getErrorMessage(): string
|
||||
{
|
||||
return 'Missing bearer token';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user