Flarum\Api\Handler\TokenMismatchExceptionHandler::handle PHP Method

handle() public method

public handle ( Exception $e )
$e Exception
    public function handle(Exception $e)
    {
        $status = 400;
        $error = ['status' => (string) $status, 'code' => 'csrf_token_mismatch'];
        return new ResponseBag($status, [$error]);
    }
TokenMismatchExceptionHandler