Custom Post Archive is not working

why don’t you try adding:

    'has_archive'        => true,

to your code?

so replace this line:

    'public'        => true,

with this:

    'public'        => true,
    'has_archive'        => true,

Then refresh your permalinks by visiting settings/permalinks.

error code: 523