Smart named error objects with HTTP compatibility