add correct SC_INTERNAL_SERVER_ERROR handling