Image, HTML5/Flash: Pass the error code as second argument to an error handler.

Not possible to instantiate exception object from Flash or Silverlight.
The code will do.