Handling exception if content header not found