API is responding with 422 on not found resources instead of 404. For now, this is a workaround that also takes the request method used to throw the proper exception. But the 404 is already supported, just waiting for the API fix.