FHttpServerResponse::Error

Creates an [FHttpServerResponse](API\Runtime\HttpServer\FHttpServerResponse) with the caller-supplied response and error codes

Windows
MacOS
Linux

References

Module

HttpServer

Header

/Engine/Source/Runtime/Online/HTTPServer/Public/HttpServerResponse.h

Include

#include "HttpServerResponse.h"

Source

/Engine/Source/Runtime/Online/HTTPServer/Private/HttpServerResponse.cpp

Syntax

static TUniquePtr< FHttpServerResponse > Error
(
    EHttpServerResponseCodes ResponseCode,
    const FString & ErrorCode,
    const FString & ErrorMessage
)

Remarks

Creates an FHttpServerResponse with the caller-supplied response and error codes

Returns

A unique pointer to an initialized response object

Parameters

Parameter

Description

ResponseCode

The HTTP response code

ErrorCode

The machine-readable error code

ErrorMessage

The contextually descriptive error message

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss