Handling status other than 200 on request