themusicman@lemmy.world to Programmer Humor@lemmy.ml · 3 years agoLemmylemmy.worldimagemessage-square73linkfedilinkarrow-up1372arrow-down18
arrow-up1364arrow-down1imageLemmylemmy.worldthemusicman@lemmy.world to Programmer Humor@lemmy.ml · 3 years agomessage-square73linkfedilink
minus-squareMysteriousSophon21@lemmy.calinkfedilinkEnglisharrow-up7·3 years agoNo, it’s probably when the app is expecting a json but the server returns an html, which usually happens in case of 502 errors.
minus-squarebarsoap@lemm.eelinkfedilinkEnglisharrow-up1·3 years agoYou really shouldn’t be expecting any content type when you get any code but a 200. If anything you should expect HTML, then, possibly plain text but that’s a subset (given a loose enough definition of html).
No, it’s probably when the app is expecting a json but the server returns an html, which usually happens in case of 502 errors.
You really shouldn’t be expecting any content type when you get any code but a 200. If anything you should expect HTML, then, possibly plain text but that’s a subset (given a loose enough definition of html).