You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/04/22 18:35:09 UTC

[GitHub] [trafficcontrol] rawlinp commented on issue #4656: POST/PUT with an invalid foreign key in the request returns 404 instead of 400

rawlinp commented on issue #4656:
URL: https://github.com/apache/trafficcontrol/issues/4656#issuecomment-617955904


   I guess 409 would make more sense too.
   
   The naive fix would be to change `api.ParseDBError` to simply return 409 on missing FK errors, since it returns a 404 today, but then most of our endpoints will start returning 409s on PUTs when the resource doesn't actually exist, which should be a 404.
   
   So, this is not really going to be a simple fix. Most likely all API endpoints will need to be updated.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org