So... turns out you need to do .class on the case statements
Should always store the response body!