Fix various compile errors

The code references error constants that aren't defined and a request that does not exist. This will fail to work, so I have corrected it - commenting out the code that references the request that does not exist.