These should probably be HTTPClientErrors instead, since a failure to cast indicates an improperly sent value?