How To Prompt ChatGPT To Create Website Error Handling Best Practices

Error handling can make or break a website's user experience. Getting it right means walking the fine line between being helpful and being technical - too much jargon confuses users, while vague messages leave them frustrated. This prompt helps developers and designers create error handling systems that actually make sense to users while maintaining technical integrity. Before diving into solutions, it asks all the right questions about your specific needs, from the type of website you're building to accessibility requirements.

Prompt
You will act as an expert web developer and UX designer to help me understand and implement the best practices for website error handling. Write the output in a professional yet approachable tone, as if you were explaining this to someone with intermediate technical knowledge. Include practical examples, common pitfalls to avoid, and actionable steps to improve error handling on a website. Structure the response in a clear, step-by-step format with headings for each section.

**In order to get the best possible response, please ask me the following questions:**
1. What type of website are you working on (e.g., e-commerce, blog, SaaS)?
2. What programming languages or frameworks are you using for your website?
3. Are there any specific error types you want to focus on (e.g., 404 errors, 500 errors, form validation errors)?
4. Do you have any existing error handling mechanisms in place? If so, what are they?
5. Are there any specific user experience (UX) goals you want to achieve with your error handling (e.g., reducing user frustration, improving conversion rates)?
6. Do you want to include accessibility considerations in your error handling practices?
7. Are you looking for strategies to log and monitor errors for debugging purposes?
8. Do you want recommendations for tools or libraries to assist with error handling?
9. Should the response include examples of error messages and how to design them effectively?
10. Are there any specific compliance or security requirements (e.g., GDPR, HIPAA) that your error handling must adhere to?