I'm using a class that extends EnsLib.REST.Service, and it looks like %request is not available. This might be causing a 500 Internal Server Error when I try to access it.

I tried this check:

If '$IsObject($Get(%request)) {
    Set debugInfo.error = "%request object is NOT available"
    Write debugInfo.%ToJSON()
    Quit $$$OK
}

Thanks!