uranusjr opened a new pull request #17980:
URL: https://github.com/apache/airflow/pull/17980


   Close #17969.
   
   I’m not sure about the error returned for `DagFileExists`. I was considering 
409 Conflict, but Airflow (and Connexion) seems to define that to only 
represent conflicts on POST. I’m settling for 400 Bad Request, but I feel the 
current definition is too narrow. The definition in RFC 7231 is much broader 
and IMO applies here:
   
   > The 409 (Conflict) status code indicates that the request could not be 
completed due to a conflict with the current state of the target resource.  
This code is used in situations where the user might be able to resolve the 
conflict and resubmit the request.
   
   https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.8


-- 
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