make scala error response types provide useful error messages