Refactor error responses and related types, validate since for retrieve