This should return INTERNAL_SERVER_ERROR if the if-clause above has determined that this was NOT a unique constraint violation.