Web Embed - Is there a way to throw error message when trying to create a case

I have a create case web embed set up. When the user sends incorrect values to create case I need to throw error message to the user without creating a case. I tried adding error message to the pyWorkPage in create case flow. This works fine in regular portal where it throw error message but in web embed it shows a blank screen instead of error message. Has anyone faced similar issue? I am currently in Pega 24.1 version.