Added error codes to the methods in face detection return values.