add messages to response errors and close response bodies with errors