Better error handling of JSON status parsing.