What is a proper response status code to POST when parent resource is not found?

by Opal   Last Updated January 24, 2018 11:05 AM

I've the following endpoint:


and want to create a b with sending POST request to it. If a with given {id} is not found should I response with 404 NOT_FOUND or maybe with 409 CONFLICT?

Related Questions

How do searches fit into a RESTful interface?

Updated September 11, 2016 09:02 AM