But even in that case - you are putting exceptions of the ZfrRest component into your codebase. Your codebase should not necessarily be aware of ZfrRest. Instead, exception types should be mapped to correct ApiProblem(s)