Hi,
i have created Custom Error page for Access denied using this command
Set-SPCustomLayoutsPage -Identity AccessDenied -RelativePath "/_layouts/15/CustomPages/Access_Denied_Custom.aspx" -WebApplication "http://mywebapp"
but i got like Sorry some thing went wrong Object reference not set to an instance of an object..can you please help me on this issue..