Added more descriptive error message when response status is zero.
Adjusted code formatting.