23tae commented on PR #67286:
URL: https://github.com/apache/airflow/pull/67286#issuecomment-4513882664

   > Status is moot in the response body -- that's already included in the HTTP 
response and shouldn't be duplicated.
   
   @ashb Thanks for the review! You're right—since the status code is already 
in the HTTP response, having it in the body is redundant. 
   
   I've removed the `status` field from the error responses and updated the 
tests accordingly.
   
   **Before:**
   ```json
   {
     "detail": {
       "type": "about:blank",
       "title": "Internal Server Error",
       "status": 500,
       "detail": "Database error occurred"
     }
   }
   ```
   
   **After:**
   ```json
   {
     "detail": {
       "type": "about:blank",
       "title": "Internal Server Error",
       "detail": "Database error occurred"
     }
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to