If you are getting a 404 on a newly created resources, you may have overridden
public Representation represent() instead of the overloaded public Representation represent(Variant variant) (the difference being the variant argument). The Resource class calls the overloaded version, which will return a null representation if you haven't overridden it. I spent quite a bit of time debugging this so this a heads up for others. Richard Hoberman

