diff --git a/common/src/lib.rs b/common/src/lib.rs index 1f56398ce..1177c815f 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -217,8 +217,16 @@ async fn get_response(response: Response) -> Result().await?) } else { let url = response.url().to_string(); - tracing::error!(?url, "Got error response from API server."); let status = response.status(); + if status.is_server_error() { + tracing::error!(?url, ?status, "Got 5xx response from Plane API server."); + } else { + tracing::warn!( + ?url, + ?status, + "Got unsuccessful response from Plane API server." + ); + } if let Ok(api_error) = response.json::().await { Err(PlaneClientError::PlaneError(api_error, status)) } else {