URISchemeResponse.setStatus

Sets the status code and reason phrase for the response.

If status_code is a known value and reason_phrase is null, the reason_phrase will be set automatically.

class URISchemeResponse
void
setStatus
(,
string reasonPhrase = null
)

Parameters

statusCode uint

the HTTP status code to be returned

reasonPhrase string

a reason phrase