Refactoring Rest controller - replaced call `http_response_code` with Response instance