Added an optional error reason code.  Not found = 404.