Handling Different Http Status Codes