Drahak\Restful\Application\BadRequestException::unauthorized PHP 메소드

unauthorized() 공개 정적인 메소드

Is thrown when trying to reach secured resource without authentication
public static unauthorized ( string $message = '', Exception | Throwable $previous = NULL ) : BadRequestException
$message string
$previous Exception | Throwable
리턴 BadRequestException
    public static function unauthorized($message = '', $previous = NULL)
    {
        return new self($message, 401, $previous);
    }