A close look at 5xx server errors: why they occur, when, and what you can do about them