Seaquel
PostgreSQL error code

PostgreSQL error 39004

39004 is the SQLSTATE PostgreSQL reports for null value not allowed, in class 39, External Routine Invocation Exception.

SQLSTATE39004
Condition namenull_value_not_allowed
Class39 — External Routine Invocation Exception

Source: PostgreSQL documentation, Appendix A