handle different error responses