fix method not allowed status