fixed a error response issue

fixes an issue where the js lib cant match the callbacks cause of "uri sanitizing"

added missing request attribute for errornous requests