In the browser, I get an error of 500 or 503.
How can I see these errors in server.log ot console.log
You can enable TRACE level logging in EAP server for the undertow subsystem and then check in server logs present in $EAP_HOME/standalone/bin directory.