Fix OutOfMemoryException when creating new HttpErrorInfo instance

Closes #292