API Error page support for Security controller errors

[ref: CWPBUG-157]