make ErrorDecoder private and remove Body field.