Drahak\Restful\Application\BadRequestException::unauthorized PHP Method

unauthorized() public static method

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
return BadRequestException
    public static function unauthorized($message = '', $previous = NULL)
    {
        return new self($message, 401, $previous);
    }