fix(api.rb): Check for 404 responses