A list of error codes in PostgreSQL, exposed as JSON. Published as an npm
package.
Last updated for PostgreSQL 10.4.
$ npm install --save pg-error-codes
import errorCodes from 'pg-error-codes';
console.log(errorCodes);
// {
// "00000": "successful_completion",
// "01000": "warning",
// ... etc ...
Public Domain