Add error code to DB error response