merge error map into response on error