Change method-not-allowed error handling to extract the error message from html page title instead of a paragraph. Title always exists, paragraph is not guaranteed to exist.