Remove the detail=None from APIException signature

The documentation not match with the implementation. The APIException doesn't have detail parameter in the constructor class, actually doesn't have constructor method at all.
Merge pull request #1189 from jespino/patch-1

Remove the detail=None from APIException signature