properly send response code