AvePoint interview question

How do I debug when I received a 500 status code