cleanup responses to include status_codes and mimetypes