getBody()->write($payload); return $response ->withHeader('Content-Type', 'application/json') ->withStatus(200); } }