Error handling for REST 404s