API is responding with a 410 code and success body when deleting a deal

Hi,

When deleting a deal, the API is responding with the 410 status code and the following body:

{ "success": true, "data": { "id": <some-id> } }

That is not correct. 4xx status code represents client errors and a DELETE method should return 200 in this case.

Thanks for your help.

Hey @hugomaiavieira

I’m unable to reproduce that on my end. Is there anything specific you’re doing on this? Can you share your Request?

@David this only happens when the deal is already deleted. Deleting an open/won/lost deal returns an expected 200 response, but deleting a deal that is already deleted returns the response as indicated above.