Handle 400, 410, and 429 error codes