Skip to main content



Coupa Success Portal

Exception Handling and Error Codes

An exception is thrown when something goes wrong when executing a request. The exception will contain an error code and may also contain a short description which will help you understand what went wrong during the request. There are many reasons an exception may occur, below are some common reasons:

  • Your code expects a value from a field that is currently null
  • An insert or update statement fails to pass a validation rule
  • Assigning a query that returns no records
  • Accessing a list index that is out of bounds

For the list of standard HTTP status codes, click here:


  • Was this article helpful?