Fixed the bug that requesting protected or private action methods would cause 500 error instead of 404