Skip to main content

empty_response

Function empty_response 

Source
pub fn empty_response(status: u16) -> Result<Response<Bytes>, ApiGatewayV2Error>
Expand description

Build an empty response with the given status code.

ยงErrors

Returns ApiGatewayV2Error if response construction fails.