replaced 501 status code to 403