Yup, good catch. Fixed to try/catch and return -1. In follow up I'll try to find a way to share the ResponseHeaders parser here.