src/Responder/StatusResponder.php
private function status(
        ResponseInterface $response,
        PayloadInterface $payload
    ) {
        $status = $payload->getStatus();
        $code = $this->http_status->getStatusCode($status);

        return $response->withStatus($code);
    }
private function status(
        ResponseInterface $response,
        PayloadInterface $payload
    ) {
        $status = $payload->getStatus();
        $code = $this->http_status->getStatusCode($status);

        return $response->withStatus($code);
    }
Get the response with the status code from the payload.

@param ResponseInterface $response
@param PayloadInterface $payload

@return ResponseInterface