Handling status codes, throwing exceptions when needed.