Name changed from ResourceError to ErrorResource.
Fix imports.
Code clean.