Adds error mapping for empty responses