Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Ching WongCourses Plus Student 680 Points
Android Tutorial: HTML Response Code error
In the Tutorial: Adapting Data for Display in a list The constant in the Android package for an OK html response code "HTML_OK" is 200. However, When running the application a html response code of 502 is received and therefore stops the execution of subsequent methods. This is solved by changing the accepted html response code to 502. Is there something wrong with my program or is it some sort of update that happened after the tutorial had been created?
Ernest GrzybowskiTreehouse Project Reviewer
The status code 502 is known as: "Bad Gateway"
"The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request."
Try double checking your code/url. If you want, post a snippet of your code for us to see.