I was just wondering how to correctly handle Salesforce error responses for an portal I'm developing. Or more generically, just how to handle a JSON error response. For instance, if I queried a database for information that didn't exist, if a user provided incorrect login credentials, etc. I'm looking for a widely accepted, pythonic solution to this problem.
Thank you.