diff --git a/lib/api/v1/mobile/renderer/ridp_renderer.rb b/lib/api/v1/mobile/renderer/ridp_renderer.rb index 1cba83f5193..1b003c23af3 100644 --- a/lib/api/v1/mobile/renderer/ridp_renderer.rb +++ b/lib/api/v1/mobile/renderer/ridp_renderer.rb @@ -22,8 +22,8 @@ def render_questions session, request, controller def render_answers session, request, controller begin render_response = ->() { - raise "This service requires a session and should be called after #{verify_identity_answers_path}" unless session && session[:pii_data] - controller.render json: _ridp_verification_instance(session, request).build_answer_response + raise "This service requires a session and should be called after #{verify_identity_path}" unless session && session[:pii_data] + controller.render json: _ridp_verification_instance(session, request).build_answer_response, status: 406 } end